<!-- 九宫格 -->
<template>
	<view class="warp">
		<up-cell-group v-for="(item,index) in props.groupList">
			<up-cell :title="item.title" isLink :label='item.label' :url="item.url">
				<template #icon>
					<up-icon :name="item.icon" size="35"></up-icon>
				</template>
			</up-cell>

		</up-cell-group>
	</view>
</template>

<script setup>
	import {
		onMounted,
		watch
	} from 'vue';
	const props = defineProps({
		groupList: Array,
	})

	// const test = (value) => {
	// 	uni.redirectTo({
	// 		url: value.url
	// 	})
	// }

	watch(() => props.groupList, (oldvalue) => {
		console.log(oldvalue, 2222)
	}, {
		immediate: true,
		deep: true
	})
</script>

<style>
</style>